package com.mycompany.crm.dao;

import com.mycompany.crm.base.BaseMapper;
import com.mycompany.crm.vo.CustomerOrder;

import java.util.Map;

public interface CustomerOrderMapper extends BaseMapper<CustomerOrder,Integer> {

    /**
     * 通过订单ID查询订单记录
     * @param orderId
     * @return
     */
//    @MapKey("id")
    Map<String, Object> queryOrderById(Integer orderId);

    /**
     * 通过客户ID查询最后的订单记录
     * @param id
     * @return
     */
    CustomerOrder queryLossCustomerOrderByCustomerId(Integer id);
}